import React, { Component } from 'react';
import { render } from 'react-dom';
 
import {Carousel,MenuItem,Button,ButtonGroup,ListGroup,ListGroupItem} from 'react-bootstrap';
 //<Carousel> </Carousel>      
let _this;
let a=1;
let s=(a,b)=>a-b;

class Home extends React.Component{
        constructor(...arg){
                super(...arg);
                 this.state={app:1};
                  _this=this;
        }

fn(){
    
      _this.setState({
          app: s(40,5)
        });
}
   render(){
       return <div>
            <div><h1  onClick={this.fn} >22222222</h1></div>
                <div><h1>--------{this.state.app}</h1></div>
                <div><h1>test3</h1></div>
                <div><h1>test4</h1></div>
                        
           
        </div>;
    }

}

export default Home